package com.gxa.modules.pc.hospital.noticeback.controller;

import com.gxa.common.utils.Result;
import com.gxa.modules.model.dto.HospitalDto;
import com.gxa.modules.pc.hospital.noticeback.mapper.HospitalBackMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * <p>
 * 医院简介表 前端控制器
 * </p>
 *
 * @author lst
 * @since 2022-11-14 09:05:41
 */
@Api(tags = "医院介绍")
@RestController
@RequestMapping("/hospital")
public class HospitalBackController {
    @Autowired
 private HospitalBackMapper hospitalBackMapper;

    @ApiOperation("医院介绍添加")
    @PostMapping("/insertHospital")
    public Result insertHospital(@RequestBody HospitalDto hospitalDto){

        int insertHospital = hospitalBackMapper.insertHospital(hospitalDto);

        return new  Result().ok(insertHospital);


    }
}

